import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;class DemoJavalian {

	public static void main(String[] args) {

	int a[]=new int [7];
	aaa(a);
	}
    
	
	public static int[] aaa(int[] a) {
		Random c=new Random();
	
		for (int i = 0; i < a.length; i++) {
		     a[i]= c.nextInt(10);
			
		}
		for (int i = 0; i < a.length; i++) {
			if(i==4) {
				
				System.out.print(" "+a[i]);
			}	else {
				
				System.out.print(a[i]);
			}		
		}
	
    return a;
	}

}
